package day07;

/**
 * Created by Shinelon on 2016/9/20.
 */
public class JSYH extends ATM{
    public JSYH(){
        setName("建设银行");
        setMenu("4，还房贷");
    }

    @Override
    public void other(Card card){
        if (card instanceof JSYHCard){
            System.out.println("请输入还款金额");
            int read =scan.nextInt();
            card.setBalance(card.getBalance()-read);
        }else {
            System.out.println("暂不支持该功能");
        }

    }

}


